package com.morningstar.qs.api.basic.common.shell;


public class ShellResult {
	public final static int EXIT_VALUE_SUCCESS = 0;
	public final static int EXIT_VALUE_TIMEOUT = 1000;
	public final static int EXIT_VALUE_UNEXCEPTED = 2000;
	
	private int exitValue;
	private String infoOutput;
	private String errorOutput;
	
	public ShellResult() {
		this.setExitValue(EXIT_VALUE_SUCCESS);
		this.setInfoOutput("");
		this.setErrorOutput("");
	}
	
	public void setExitValue(int exitValue) {
		this.exitValue = exitValue;
	}
	public int getExitValue() {
		return exitValue;
	}
	public void setErrorOutput(String errorOutput) {
		this.errorOutput = errorOutput;
	}
	public String getErrorOutput() {
		return this.errorOutput;
	}
	public void setInfoOutput(String infoOutput) {
		this.infoOutput = infoOutput;
	}
	public String getInfoOutput() {
		return this.infoOutput;
	}
}
